home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / misc / volume27 / dmake / part26 < prev    next >
Encoding:
Text File  |  1992-01-29  |  40.0 KB  |  1,213 lines

  1. Newsgroups: comp.sources.misc
  2. From: dvadura@plg.waterloo.edu (Dennis Vadura)
  3. Subject:  v27i127:  dmake - dmake Version 3.8, Part26/41
  4. Message-ID: <1992Jan28.214736.19941@sparky.imd.sterling.com>
  5. X-Md4-Signature: 60b9cb98c7e997c4e4425558585dd3e2
  6. Date: Tue, 28 Jan 1992 21:47:36 GMT
  7. Approved: kent@sparky.imd.sterling.com
  8.  
  9. Submitted-by: dvadura@plg.waterloo.edu (Dennis Vadura)
  10. Posting-number: Volume 27, Issue 127
  11. Archive-name: dmake/part26
  12. Environment: Atari-ST, Coherent, Mac, MSDOS, OS/2, UNIX
  13. Supersedes: dmake: Volume 19, Issue 22-58
  14.  
  15. ---- Cut Here and feed the following to sh ----
  16. # this is dmake.shar.26 (part 26 of a multipart archive)
  17. # do not concatenate these parts, unpack them in order with /bin/sh
  18. # file dmake/msdos/tccdos/mkswp.bat continued
  19. #
  20. if test ! -r _shar_seq_.tmp; then
  21.     echo 'Please unpack part 1 first!'
  22.     exit 1
  23. fi
  24. (read Scheck
  25.  if test "$Scheck" != 26; then
  26.     echo Please unpack part "$Scheck" next!
  27.     exit 1
  28.  else
  29.     exit 0
  30.  fi
  31. ) < _shar_seq_.tmp || exit 1
  32. if test -f _shar_wnt_.tmp; then
  33. sed 's/^X//' << 'SHAR_EOF' >> 'dmake/msdos/tccdos/mkswp.bat' &&
  34. tcc -c -I. -Imsdos -Imsdos\tccdos -f- -d -O -N- -w-nod -ml  rulparse.c
  35. copy rulparse.obj objects
  36. del rulparse.obj
  37. tcc -c -I. -Imsdos -Imsdos\tccdos -f- -d -O -N- -w-nod -ml  percent.c
  38. copy percent.obj objects
  39. del percent.obj
  40. tcc -c -I. -Imsdos -Imsdos\tccdos -f- -d -O -N- -w-nod -ml  function.c
  41. copy function.obj objects
  42. del function.obj
  43. tcc -c -I. -Imsdos -Imsdos\tccdos -f- -d -O -N- -w-nod -ml  msdos\ruletab.c
  44. copy ruletab.obj objects
  45. del ruletab.obj
  46. tcc -c -I. -Imsdos -Imsdos\tccdos -f- -d -O -N- -w-nod -ml  msdos\dirbrk.c
  47. copy dirbrk.obj objects
  48. del dirbrk.obj
  49. tcc -c -I. -Imsdos -Imsdos\tccdos -f- -d -O -N- -w-nod -ml  msdos\runargv.c
  50. copy runargv.obj objects
  51. del runargv.obj
  52. tcc -c -I. -Imsdos -Imsdos\tccdos -f- -d -O -N- -w-nod -ml  msdos\arlib.c
  53. copy arlib.obj objects
  54. del arlib.obj
  55. tcc -c -I. -Imsdos -Imsdos\tccdos -f- -d -O -N- -w-nod -ml  msdos\_chdir.c
  56. copy _chdir.obj objects
  57. del _chdir.obj
  58. tcc -c -I. -Imsdos -Imsdos\tccdos -f- -d -O -N- -w-nod -ml  msdos\switchar.c
  59. copy switchar.obj objects
  60. del switchar.obj
  61. tcc -c -I. -Imsdos -Imsdos\tccdos -f- -d -O -N- -w-nod -ml  msdos\rmprq.c
  62. copy rmprq.obj objects
  63. del rmprq.obj
  64. tcc -c -I. -Imsdos -Imsdos\tccdos -f- -d -O -N- -w-nod -ml  msdos\find.c
  65. copy find.obj objects
  66. del find.obj
  67. tcc -c -I. -Imsdos -Imsdos\tccdos -f- -d -O -N- -w-nod -ml  msdos\spawn.c
  68. copy spawn.obj objects
  69. del spawn.obj
  70. tcc -c -I. -Imsdos -Imsdos\tccdos -f- -d -O -N- -w-nod -ml  msdos\tccdos\tempnam.c
  71. copy tempnam.obj objects
  72. del tempnam.obj
  73. tcc -c -I. -Imsdos -Imsdos\tccdos -f- -d -O -N- -w-nod -ml  msdos\tccdos\utime.c
  74. copy utime.obj objects
  75. del utime.obj
  76. copy msdos\tccdos\startup.mk startup.mk
  77. tlink  @msdos\tccdos\objswp.rsp,dmake.exe,NUL.MAP,@msdos\tccdos\libswp.rsp
  78. SHAR_EOF
  79. chmod 0640 dmake/msdos/tccdos/mkswp.bat ||
  80. echo 'restore of dmake/msdos/tccdos/mkswp.bat failed'
  81. Wc_c="`wc -c < 'dmake/msdos/tccdos/mkswp.bat'`"
  82. test 3698 -eq "$Wc_c" ||
  83.     echo 'dmake/msdos/tccdos/mkswp.bat: original size 3698, current size' "$Wc_c"
  84. rm -f _shar_wnt_.tmp
  85. fi
  86. # ============= dmake/msdos/tccdos/obj.rsp ==============
  87. if test -f 'dmake/msdos/tccdos/obj.rsp' -a X"$1" != X"-c"; then
  88.     echo 'x - skipping dmake/msdos/tccdos/obj.rsp (File already exists)'
  89.     rm -f _shar_wnt_.tmp
  90. else
  91. > _shar_wnt_.tmp
  92. sed 's/^X//' << 'SHAR_EOF' > 'dmake/msdos/tccdos/obj.rsp' &&
  93. d:\cc\tcc\lib\c0l.obj+
  94. objects\infer.obj+
  95. objects\make.obj+
  96. objects\stat.obj+
  97. objects\expand.obj+
  98. objects\dmstring.obj+
  99. objects\hash.obj+
  100. objects\dag.obj+
  101. objects\dmake.obj+
  102. objects\path.obj+
  103. objects\imacs.obj+
  104. objects\sysintf.obj+
  105. objects\parse.obj+
  106. objects\getinp.obj+
  107. objects\quit.obj+
  108. objects\state.obj+
  109. objects\basename.obj+
  110. objects\dmdump.obj+
  111. objects\macparse.obj+
  112. objects\rulparse.obj+
  113. objects\percent.obj+
  114. objects\function.obj+
  115. objects\ruletab.obj+
  116. objects\dirbrk.obj+
  117. objects\runargv.obj+
  118. objects\arlib.obj+
  119. objects\_chdir.obj+
  120. objects\switchar.obj+
  121. objects\rmprq.obj+
  122. objects\tee.obj+
  123. objects\tempnam.obj+
  124. objects\utime.obj
  125. SHAR_EOF
  126. chmod 0640 dmake/msdos/tccdos/obj.rsp ||
  127. echo 'restore of dmake/msdos/tccdos/obj.rsp failed'
  128. Wc_c="`wc -c < 'dmake/msdos/tccdos/obj.rsp'`"
  129. test 635 -eq "$Wc_c" ||
  130.     echo 'dmake/msdos/tccdos/obj.rsp: original size 635, current size' "$Wc_c"
  131. rm -f _shar_wnt_.tmp
  132. fi
  133. # ============= dmake/msdos/tccdos/objswp.rsp ==============
  134. if test -f 'dmake/msdos/tccdos/objswp.rsp' -a X"$1" != X"-c"; then
  135.     echo 'x - skipping dmake/msdos/tccdos/objswp.rsp (File already exists)'
  136.     rm -f _shar_wnt_.tmp
  137. else
  138. > _shar_wnt_.tmp
  139. sed 's/^X//' << 'SHAR_EOF' > 'dmake/msdos/tccdos/objswp.rsp' &&
  140. d:\cc\tcc\lib\c0l.obj+
  141. objects\exec.obj+
  142. objects\infer.obj+
  143. objects\make.obj+
  144. objects\stat.obj+
  145. objects\expand.obj+
  146. objects\dmstring.obj+
  147. objects\hash.obj+
  148. objects\dag.obj+
  149. objects\dmake.obj+
  150. objects\path.obj+
  151. objects\imacs.obj+
  152. objects\sysintf.obj+
  153. objects\parse.obj+
  154. objects\getinp.obj+
  155. objects\quit.obj+
  156. objects\state.obj+
  157. objects\basename.obj+
  158. objects\dmdump.obj+
  159. objects\macparse.obj+
  160. objects\rulparse.obj+
  161. objects\percent.obj+
  162. objects\function.obj+
  163. objects\ruletab.obj+
  164. objects\dirbrk.obj+
  165. objects\runargv.obj+
  166. objects\arlib.obj+
  167. objects\_chdir.obj+
  168. objects\switchar.obj+
  169. objects\rmprq.obj+
  170. objects\find.obj+
  171. objects\spawn.obj+
  172. objects\tempnam.obj+
  173. objects\utime.obj
  174. SHAR_EOF
  175. chmod 0640 dmake/msdos/tccdos/objswp.rsp ||
  176. echo 'restore of dmake/msdos/tccdos/objswp.rsp failed'
  177. Wc_c="`wc -c < 'dmake/msdos/tccdos/objswp.rsp'`"
  178. test 673 -eq "$Wc_c" ||
  179.     echo 'dmake/msdos/tccdos/objswp.rsp: original size 673, current size' "$Wc_c"
  180. rm -f _shar_wnt_.tmp
  181. fi
  182. # ============= dmake/msdos/tccdos/public.h ==============
  183. if test -f 'dmake/msdos/tccdos/public.h' -a X"$1" != X"-c"; then
  184.     echo 'x - skipping dmake/msdos/tccdos/public.h (File already exists)'
  185.     rm -f _shar_wnt_.tmp
  186. else
  187. > _shar_wnt_.tmp
  188. sed 's/^X//' << 'SHAR_EOF' > 'dmake/msdos/tccdos/public.h' &&
  189. /* RCS      -- $Header$
  190. -- WARNING  -- This file is AUTOMATICALLY GENERATED DO NOT EDIT IT
  191. --
  192. -- SYNOPSIS -- Local functions exported to be visible by others.
  193. --
  194. -- DESCRIPTION
  195. --      This file is generated by 'genpub'.  Function declarations
  196. --      that appear in this file are extracted by 'genpub' from
  197. --      source files.  Any function in the source file whose definition
  198. --      appears like:
  199. --
  200. --          PUBLIC return_type
  201. --          function( arg_list );
  202. --          type_expr1 arg1;
  203. --          ...
  204. --
  205. --      has its definition extracted and a line of the form:
  206. --
  207. --          return_type function ANSI((type_expr1,type_expr2,...));
  208. --
  209. --      entered into the output file.
  210. --
  211. -- AUTHOR
  212. --      Dennis Vadura, dvadura@watdragon.uwaterloo.ca
  213. --      CS DEPT, University of Waterloo, Waterloo, Ont., Canada
  214. --
  215. -- COPYRIGHT
  216. --      Copyright (c) 1990 by Dennis Vadura.  All rights reserved.
  217. -- 
  218. --      This program is free software; you can redistribute it and/or
  219. --      modify it under the terms of the GNU General Public License
  220. --      (version 1), as published by the Free Software Foundation, and
  221. --      found in the file 'LICENSE' included with this distribution.
  222. -- 
  223. --      This program is distributed in the hope that it will be useful,
  224. --      but WITHOUT ANY WARRANTY; without even the implied warrant of
  225. --      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  226. --      GNU General Public License for more details.
  227. -- 
  228. --      You should have received a copy of the GNU General Public License
  229. --      along with this program;  if not, write to the Free Software
  230. --      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  231. --
  232. -- LOG
  233. --     $Log$
  234. */
  235. X
  236. #ifndef _DMAKE_PUBLIC_h
  237. #define _DMAKE_PUBLIC_h
  238. X
  239. void Infer_recipe ANSI((CELLPTR, CELLPTR));
  240. int Make_targets ANSI(());
  241. int Exec_commands ANSI((CELLPTR));
  242. void Print_cmnd ANSI((char *, int, int));
  243. void Pop_dir ANSI((int));
  244. void Append_line ANSI((char *, int, FILE *, char *, int, int));
  245. void Stat_target ANSI((CELLPTR, int));
  246. char * Expand ANSI((char *));
  247. char * Apply_edit ANSI((char *, char *, char *, int, int));
  248. void Map_esc ANSI((char *));
  249. char* Apply_modifiers ANSI((int, char *));
  250. char* Tokenize ANSI((char *, char *));
  251. char * _strjoin ANSI((char *, char *, int, int));
  252. char * _stradd ANSI((char *, char *, int));
  253. char * _strapp ANSI((char *, char *));
  254. char * _strdup ANSI((char *));
  255. char * _strdup2 ANSI((char *));
  256. char * _strpbrk ANSI((char *, char *));
  257. char * _strspn ANSI((char *, char *));
  258. char * _strstr ANSI((char *, char *));
  259. char * _substr ANSI((char *, char *));
  260. uint16 Hash ANSI((char *, uint32 *));
  261. HASHPTR Get_name ANSI((char *, HASHPTR *, int));
  262. HASHPTR Search_table ANSI((HASHPTR *, char *, uint16 *, uint32 *));
  263. HASHPTR Def_macro ANSI((char *, char *, int));
  264. CELLPTR Def_cell ANSI((char *));
  265. LINKPTR Add_prerequisite ANSI((CELLPTR, CELLPTR, int, int));
  266. void Clear_prerequisites ANSI((CELLPTR));
  267. int Test_circle ANSI((CELLPTR, int));
  268. STRINGPTR Def_recipe ANSI((char *, STRINGPTR, int, int));
  269. t_attr Rcp_attribute ANSI((char *));
  270. int main ANSI((int, char **));
  271. FILE * Openfile ANSI((char *, int, int));
  272. FILE * Closefile ANSI(());
  273. FILE * Search_file ANSI((char *, char **));
  274. char * Filename ANSI(());
  275. int Nestlevel ANSI(());
  276. void No_ram ANSI(());
  277. int Usage ANSI((int));
  278. int Version ANSI(());
  279. char * Get_suffix ANSI((char *));
  280. char * Build_path ANSI((char *, char *));
  281. void Make_rules ANSI(());
  282. void Create_macro_vars ANSI(());
  283. time_t Do_stat ANSI((char *, char *, char **));
  284. int Do_touch ANSI((char *, char *, char **));
  285. void Void_lib_cache ANSI((char *, char *));
  286. time_t Do_time ANSI(());
  287. int Do_cmnd ANSI((char *, int, int, CELLPTR, int, int, int));
  288. char ** Pack_argv ANSI((int, int, char *));
  289. char * Read_env_string ANSI((char *));
  290. int Write_env_string ANSI((char *, char *));
  291. void ReadEnvironment ANSI(());
  292. void Catch_signals ANSI((void (*)()));
  293. void Clear_signals ANSI(());
  294. void Prolog ANSI((int, char* []));
  295. void Epilog ANSI((int));
  296. char * Get_current_dir ANSI(());
  297. int Set_dir ANSI((char*));
  298. char Get_switch_char ANSI(());
  299. FILE* Get_temp ANSI((char **, char *, int));
  300. FILE * Start_temp ANSI((char *, CELLPTR, char **));
  301. void Open_temp_error ANSI((char *, char *));
  302. void Link_temp ANSI((CELLPTR, FILE *, char *));
  303. void Close_temp ANSI((CELLPTR, FILE *));
  304. void Unlink_temp_files ANSI((CELLPTR));
  305. void Handle_result ANSI((int, int, int, CELLPTR));
  306. void Update_time_stamp ANSI((CELLPTR));
  307. int Remove_file ANSI((char *));
  308. void Parse ANSI((FILE *));
  309. int Get_line ANSI((char *, FILE *));
  310. char * Do_comment ANSI((char *, char **, int));
  311. char * Get_token ANSI((TKSTRPTR, char *, int));
  312. void Quit ANSI(());
  313. void Read_state ANSI(());
  314. void Write_state ANSI(());
  315. int Check_state ANSI((CELLPTR, STRINGPTR *, int));
  316. char* basename ANSI((char *));
  317. void Dump ANSI(());
  318. void Dump_recipe ANSI((STRINGPTR));
  319. int Parse_macro ANSI((char *, int));
  320. int Macro_op ANSI((char *));
  321. int Parse_rule_def ANSI((int *));
  322. int Rule_op ANSI((char *));
  323. void Add_recipe_to_list ANSI((char *, int, int));
  324. void Bind_rules_to_targets ANSI((int));
  325. int Set_group_attributes ANSI((char *));
  326. DFALINKPTR Match_dfa ANSI((char *));
  327. void Check_circle_dfa ANSI(());
  328. void Add_nfa ANSI((char *));
  329. char * Exec_function ANSI((char *));
  330. int If_root_path ANSI((char *));
  331. int runargv ANSI((CELLPTR, int, int, int, int, char *));
  332. void Clean_up_processes ANSI(());
  333. int Wait_for_child ANSI((int, int));
  334. time_t seek_arch ANSI((char*, char*));
  335. int touch_arch ANSI((char*, char*));
  336. int _chdir ANSI((char *));
  337. void Remove_prq ANSI((CELLPTR));
  338. void Hook_std_writes ANSI((char *));
  339. X
  340. #endif
  341. SHAR_EOF
  342. chmod 0640 dmake/msdos/tccdos/public.h ||
  343. echo 'restore of dmake/msdos/tccdos/public.h failed'
  344. Wc_c="`wc -c < 'dmake/msdos/tccdos/public.h'`"
  345. test 5547 -eq "$Wc_c" ||
  346.     echo 'dmake/msdos/tccdos/public.h: original size 5547, current size' "$Wc_c"
  347. rm -f _shar_wnt_.tmp
  348. fi
  349. # ============= dmake/msdos/tccdos/startup.mk ==============
  350. if test -f 'dmake/msdos/tccdos/startup.mk' -a X"$1" != X"-c"; then
  351.     echo 'x - skipping dmake/msdos/tccdos/startup.mk (File already exists)'
  352.     rm -f _shar_wnt_.tmp
  353. else
  354. > _shar_wnt_.tmp
  355. sed 's/^X//' << 'SHAR_EOF' > 'dmake/msdos/tccdos/startup.mk' &&
  356. # MSDOS DMAKE startup file.  Customize to suit your needs.
  357. # Assumes MKS toolkit for the tool commands, and Turbo-C.  Change as req'd.
  358. # See the documentation for a description of internally defined macros.
  359. #
  360. # Disable warnings for macros redefined here that were given
  361. # on the command line.
  362. __.SILENT := $(.SILENT)
  363. .SILENT   := yes
  364. X
  365. # Configuration parameters for DMAKE startup.mk file
  366. # Set these to NON-NULL if you wish to turn the parameter on.
  367. _HAVE_RCS    := yes        # yes => RCS  is installed.
  368. _HAVE_SCCS    :=         # yes => SCCS is installed.
  369. X
  370. # Applicable suffix definitions
  371. A := .lib    # Libraries
  372. E := .exe    # Executables
  373. F := .for    # Fortran
  374. O := .obj    # Objects
  375. P := .pas    # Pascal
  376. S := .asm    # Assembler sources
  377. V :=         # RCS suffix
  378. X
  379. # See if these are defined
  380. TMPDIR := $(ROOTDIR)/tmp
  381. .IMPORT .IGNORE : TMPDIR SHELL COMSPEC
  382. X
  383. # Recipe execution configurations
  384. # First set SHELL, If it is not defined, use COMSPEC, otherwise
  385. # it is assumed to be MKS Korn SHELL.
  386. .IF $(SHELL) == $(NULL)
  387. .IF $(COMSPEC) == $(NULL)
  388. X   SHELL := $(ROOTDIR)/bin/sh$E
  389. .ELSE
  390. X   SHELL := $(COMSPEC)
  391. .END
  392. .END
  393. GROUPSHELL := $(SHELL)
  394. X
  395. # Now set remaining arguments depending on which SHELL we
  396. # are going to use.  COMSPEC (assumed to be command.com) or
  397. # MKS Korn Shell.
  398. .IF $(SHELL)==$(COMSPEC)
  399. X   SHELLFLAGS  := $(SWITCHAR)c
  400. X   GROUPFLAGS  := $(SHELLFLAGS)
  401. X   SHELLMETAS  := *"?<>
  402. X   GROUPSUFFIX := .bat
  403. X   DIRSEPSTR   := \\
  404. X   DIVFILE      = $(TMPFILE:s,/,\)
  405. .ELSE
  406. X   SHELLFLAGS  := -c
  407. X   GROUPFLAGS  := 
  408. X   SHELLMETAS  := *"?<>|()&][$$\#`'
  409. X   GROUPSUFFIX := .ksh
  410. X   .MKSARGS    := yes
  411. X   DIVFILE      = $(TMPFILE:s,/,${DIVSEP_shell_${USESHELL}})
  412. X   DIVSEP_shell_yes := \\\
  413. X   DIVSEP_shell_no  := \\
  414. .END
  415. X
  416. # Standard C-language command names and flags
  417. X   CC      := tcc        # C-compiler and flags
  418. X   CFLAGS  +=
  419. X
  420. X   AS      := tasm        # Assembler and flags
  421. X   ASFLAGS += 
  422. X
  423. X   LD       = tlink        # Loader and flags
  424. X   LDFLAGS +=
  425. X   LDLIBS   =
  426. X
  427. # Definition of $(MAKE) macro for recursive makes.
  428. X   MAKE = $(MAKECMD) $(MFLAGS)
  429. X
  430. # Language and Parser generation Tools and their flags
  431. X   YACC      := yacc        # standard yacc
  432. X   YFLAGS +=
  433. X   YTAB      := ytab        # yacc output files name stem.
  434. X
  435. X   LEX      := lex        # standard lex
  436. X   LFLAGS +=
  437. X   LEXYY  := lex_yy        # lex output file
  438. X
  439. # Other Compilers, Tools and their flags
  440. X   PC    := tpc            # pascal compiler
  441. X   RC    := anyf77        # ratfor compiler
  442. X   FC    := anyf77        # fortran compiler
  443. X
  444. X   CO       := co        # check out for RCS
  445. X   COFLAGS += -q
  446. X
  447. X   AR     := ar            # archiver
  448. X   ARFLAGS+= ruv
  449. X
  450. X   RM       := rm        # remove a file command
  451. X   RMFLAGS +=
  452. X
  453. # Implicit generation rules for making inferences.
  454. # We don't provide .yr or .ye rules here.  They're obsolete.
  455. # Rules for making *$O
  456. X   %$O : %.c ; $(CC) $(CFLAGS) -c $<
  457. X   %$O : %$P ; $(PC) $(PFLAGS) -c $<
  458. X   %$O : %$S ; $(AS) $(ASFLAGS) $(<:s,/,\);
  459. X   %$O : %.cl ; class -c $<
  460. X   %$O : %.e %.r %.F %$F ; $(FC) $(RFLAGS) $(EFLAGS) $(FFLAGS) -c $<
  461. X
  462. # Executables
  463. X   %$E : %$O ; $(CC) $(LDFLAGS) -o$@ $< $(LDLIBS)
  464. X
  465. # lex and yacc rules
  466. X   %.c : %.y ; $(YACC)  $(YFLAGS) $<; mv $(YTAB).c $@
  467. X   %.c : %.l ; $(LEX)   $(LFLAGS) $<; mv $(LEXYY).c $@
  468. X
  469. # RCS support
  470. .IF $(_HAVE_RCS)
  471. X   % : $$(@:d)RCS/$$(@:f)$V;- $(CO) $(COFLAGS) $@
  472. X   .NOINFER : $$(@:d)RCS/$$(@:f)$V
  473. .END
  474. X
  475. # SCCS support
  476. .IF $(_HAVE_SCCS)
  477. X   % : s.% ; get $<
  478. X   .NOINFER : s.%
  479. .END
  480. X
  481. # Recipe to make archive files.
  482. %$A :
  483. [
  484. X   $(AR) $(ARFLAGS) $@ $?
  485. X   $(RM) $(RMFLAGS) $?
  486. ]
  487. X
  488. # DMAKE uses this recipe to remove intermediate targets
  489. .REMOVE :; $(RM) -f $<
  490. X
  491. # AUGMAKE extensions for SYSV compatibility
  492. @B = $(@:b)
  493. @D = $(@:d)
  494. @F = $(@:f)
  495. "*B" = $(*:b)
  496. "*D" = $(*:d)
  497. "*F" = $(*:f)
  498. <B = $(<:b)
  499. <D = $(<:d)
  500. <F = $(<:f)
  501. ?B = $(?:b)
  502. ?F = $(?:f)
  503. ?D = $(?:d)
  504. X
  505. # Turn warnings back to previous setting.
  506. .SILENT := $(__.SILENT)
  507. X
  508. # Local init file if any, gets parsed before user makefile
  509. .INCLUDE .IGNORE: "_startup.mk"
  510. SHAR_EOF
  511. chmod 0640 dmake/msdos/tccdos/startup.mk ||
  512. echo 'restore of dmake/msdos/tccdos/startup.mk failed'
  513. Wc_c="`wc -c < 'dmake/msdos/tccdos/startup.mk'`"
  514. test 3801 -eq "$Wc_c" ||
  515.     echo 'dmake/msdos/tccdos/startup.mk: original size 3801, current size' "$Wc_c"
  516. rm -f _shar_wnt_.tmp
  517. fi
  518. # ============= dmake/msdos/tccdos/tempnam.c ==============
  519. if test -f 'dmake/msdos/tccdos/tempnam.c' -a X"$1" != X"-c"; then
  520.     echo 'x - skipping dmake/msdos/tccdos/tempnam.c (File already exists)'
  521.     rm -f _shar_wnt_.tmp
  522. else
  523. > _shar_wnt_.tmp
  524. sed 's/^X//' << 'SHAR_EOF' > 'dmake/msdos/tccdos/tempnam.c' &&
  525. /*LINTLIBRARY*/
  526. #include <stdio.h>
  527. #include <string.h>
  528. #include <stdlib.h>
  529. #include <dos.h>
  530. X
  531. #if defined(max)
  532. #   undef  max
  533. #endif
  534. #define max(A,B) (((A)<(B))?(B):(A))
  535. X
  536. extern char *mktemp();
  537. extern int access();
  538. int _access();
  539. X
  540. /* Turbo C stdio.h doesn't define P_tmpdir, so let's do it here */
  541. /* Under DOS leave the default tmpdir pointing here!        */
  542. static char *P_tmpdir = "";
  543. X
  544. char *
  545. tempnam(dir, prefix)
  546. char *dir;        /* use this directory please (if non-NULL) */
  547. char *prefix;        /* use this (if non-NULL) as filename prefix */
  548. {
  549. X   static         int count = 0;
  550. X   register char *p, *q, *tmpdir;
  551. X   int            tl=0, dl=0, pl;
  552. X   char          buf[30];
  553. X
  554. X   pl = strlen(P_tmpdir);
  555. X
  556. X   if( (tmpdir = getenv("TMPDIR")) != NULL ) tl = strlen(tmpdir);
  557. X   if( dir != NULL ) dl = strlen(dir);
  558. X
  559. X   if( (p = malloc((unsigned)(max(max(dl,tl),pl)+13))) == NULL )
  560. X     return(NULL);
  561. X
  562. X   *p = '\0';
  563. X
  564. X   if( (tl == 0) || (_access( strcpy(p, tmpdir), 0) != 0) )
  565. X     if( (dl == 0) || (_access( strcpy(p, dir), 0) != 0) )
  566. X    if( _access( strcpy(p, P_tmpdir), 0) != 0 )
  567. X       if( !prefix )
  568. X          prefix = "tp";
  569. X
  570. X   if(prefix)
  571. X   {
  572. X      *(p+strlen(p)+2) = '\0';
  573. X      (void)strncat(p, prefix, 2);
  574. X   }
  575. X
  576. X   sprintf( buf, "%08x", _psp );
  577. X   buf[6]='\0';
  578. X   (void)strcat(p, buf );
  579. X   sprintf( buf, "%04d", count++ );
  580. X   q=p+strlen(p)-6;
  581. X   *q++ = buf[0]; *q++ = buf[1];
  582. X   *q++ = buf[2]; *q++ = buf[3];
  583. X
  584. X   if( (q = strrchr(p,'.')) != NULL ) *q = '\0';
  585. X
  586. X   return(p);
  587. }
  588. X
  589. X
  590. X
  591. _access( name, flag )
  592. char *name;
  593. int  flag;
  594. {
  595. X   char *p;
  596. X   int r;
  597. X
  598. X   if( name == NULL || !*name ) return(1);  /* NULL dir means current dir */
  599. X   r = access( name, flag );
  600. X   p = name+strlen(name)-1;
  601. X   if(*p != '/' && *p != '\\') strcat( p, "/" );
  602. X
  603. X   return( r );
  604. }
  605. SHAR_EOF
  606. chmod 0640 dmake/msdos/tccdos/tempnam.c ||
  607. echo 'restore of dmake/msdos/tccdos/tempnam.c failed'
  608. Wc_c="`wc -c < 'dmake/msdos/tccdos/tempnam.c'`"
  609. test 1724 -eq "$Wc_c" ||
  610.     echo 'dmake/msdos/tccdos/tempnam.c: original size 1724, current size' "$Wc_c"
  611. rm -f _shar_wnt_.tmp
  612. fi
  613. # ============= dmake/msdos/tccdos/utime.c ==============
  614. if test -f 'dmake/msdos/tccdos/utime.c' -a X"$1" != X"-c"; then
  615.     echo 'x - skipping dmake/msdos/tccdos/utime.c (File already exists)'
  616.     rm -f _shar_wnt_.tmp
  617. else
  618. > _shar_wnt_.tmp
  619. sed 's/^X//' << 'SHAR_EOF' > 'dmake/msdos/tccdos/utime.c' &&
  620. /*
  621. ** change access and modify times of file
  622. */
  623. #include <sys/stat.h>
  624. #include <fcntl.h>
  625. #include <time.h>
  626. X
  627. int
  628. utime(name, timep)/*
  629. ====================
  630. X    Broken for turbo C it only sets the file time to the current time by
  631. X    touching a character in the file */
  632. char*    name;
  633. time_t    timep[2];
  634. {
  635. X    struct  stat buf;
  636. X    int    fil;
  637. X    char    data;
  638. X
  639. X    if (stat(name, &buf) != 0)
  640. X        return (-1);
  641. X    if (buf.st_size != 0)  {
  642. X        if ((fil = open(name, O_RDWR, S_IWRITE)) < 0)
  643. X            return (-1);
  644. X        if (read(fil, &data, 1) < 1) {
  645. X            close(fil);
  646. X            return (-1);
  647. X        }
  648. X        lseek(fil, 0L, 0);
  649. X        if (write(fil, &data, 1) < 1) {
  650. X            close(fil);
  651. X            return (-1);
  652. X        }
  653. X        close(fil);
  654. X        return (0);
  655. X    } else     if ((fil = creat(name, S_IWRITE)) < 0) {
  656. X        return (-1);
  657. X    } else {
  658. X        close(fil);
  659. X        return (0);
  660. X    }
  661. }
  662. SHAR_EOF
  663. chmod 0640 dmake/msdos/tccdos/utime.c ||
  664. echo 'restore of dmake/msdos/tccdos/utime.c failed'
  665. Wc_c="`wc -c < 'dmake/msdos/tccdos/utime.c'`"
  666. test 767 -eq "$Wc_c" ||
  667.     echo 'dmake/msdos/tccdos/utime.c: original size 767, current size' "$Wc_c"
  668. rm -f _shar_wnt_.tmp
  669. fi
  670. # ============= dmake/msdos/tee.c ==============
  671. if test -f 'dmake/msdos/tee.c' -a X"$1" != X"-c"; then
  672.     echo 'x - skipping dmake/msdos/tee.c (File already exists)'
  673.     rm -f _shar_wnt_.tmp
  674. else
  675. > _shar_wnt_.tmp
  676. sed 's/^X//' << 'SHAR_EOF' > 'dmake/msdos/tee.c' &&
  677. /* RCS      -- $Header: /u2/dvadura/src/generic/dmake/src/msdos/tee.c,v 1.1 1992/01/24 03:27:37 dvadura Exp $
  678. -- SYNOPSIS -- Hook_std_writes() dummy call for non swapping MSDOS versions.
  679. -- 
  680. -- DESCRIPTION
  681. --
  682. -- AUTHOR
  683. --      Dennis Vadura, dvadura@watdragon.uwaterloo.ca
  684. --      CS DEPT, University of Waterloo, Waterloo, Ont., Canada
  685. --
  686. -- COPYRIGHT
  687. --      Copyright (c) 1990 by Dennis Vadura.  All rights reserved.
  688. -- 
  689. --      This program is free software; you can redistribute it and/or
  690. --      modify it under the terms of the GNU General Public License
  691. --      (version 1), as published by the Free Software Foundation, and
  692. --      found in the file 'LICENSE' included with this distribution.
  693. -- 
  694. --      This program is distributed in the hope that it will be useful,
  695. --      but WITHOUT ANY WARRANTY; without even the implied warrant of
  696. --      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  697. --      GNU General Public License for more details.
  698. -- 
  699. --      You should have received a copy of the GNU General Public License
  700. --      along with this program;  if not, write to the Free Software
  701. --      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  702. --
  703. -- LOG
  704. --     $Log: tee.c,v $
  705. X * Revision 1.1  1992/01/24  03:27:37  dvadura
  706. X * dmake Version 3.8, Initial revision
  707. X *
  708. */
  709. X
  710. #include "extern.h"
  711. X
  712. PUBLIC void
  713. Hook_std_writes( file )
  714. char *file;
  715. {
  716. }
  717. SHAR_EOF
  718. chmod 0640 dmake/msdos/tee.c ||
  719. echo 'restore of dmake/msdos/tee.c failed'
  720. Wc_c="`wc -c < 'dmake/msdos/tee.c'`"
  721. test 1383 -eq "$Wc_c" ||
  722.     echo 'dmake/msdos/tee.c: original size 1383, current size' "$Wc_c"
  723. rm -f _shar_wnt_.tmp
  724. fi
  725. # ============= dmake/msdos/ztcdos/config.h ==============
  726. if test ! -d 'dmake/msdos/ztcdos'; then
  727.     mkdir 'dmake/msdos/ztcdos'
  728. fi
  729. if test -f 'dmake/msdos/ztcdos/config.h' -a X"$1" != X"-c"; then
  730.     echo 'x - skipping dmake/msdos/ztcdos/config.h (File already exists)'
  731.     rm -f _shar_wnt_.tmp
  732. else
  733. > _shar_wnt_.tmp
  734. sed 's/^X//' << 'SHAR_EOF' > 'dmake/msdos/ztcdos/config.h' &&
  735. /* RCS      -- $Header: /u2/dvadura/src/generic/dmake/src/msdos/ztcdos/config.h,v 1.1 1992/01/24 03:27:49 dvadura Exp $
  736. -- SYNOPSIS -- Configurarion include file.
  737. -- 
  738. -- DESCRIPTION
  739. --     There is one of these for each specific machine configuration.
  740. --    It can be used to further tweek the machine specific sources
  741. --    so that they compile.
  742. --
  743. -- AUTHOR
  744. --      Dennis Vadura, dvadura@watdragon.uwaterloo.ca
  745. --      CS DEPT, University of Waterloo, Waterloo, Ont., Canada
  746. --
  747. -- COPYRIGHT
  748. --      Copyright (c) 1990 by Dennis Vadura.  All rights reserved.
  749. -- 
  750. --      This program is free software; you can redistribute it and/or
  751. --      modify it under the terms of the GNU General Public License
  752. --      (version 1), as published by the Free Software Foundation, and
  753. --      found in the file 'LICENSE' included with this distribution.
  754. -- 
  755. --      This program is distributed in the hope that it will be useful,
  756. --      but WITHOUT ANY WARRANTY; without even the implied warrant of
  757. --      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  758. --      GNU General Public License for more details.
  759. -- 
  760. --      You should have received a copy of the GNU General Public License
  761. --      along with this program;  if not, write to the Free Software
  762. --      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  763. --
  764. -- LOG
  765. --     $Log: config.h,v $
  766. X * Revision 1.1  1992/01/24  03:27:49  dvadura
  767. X * dmake Version 3.8, Initial revision
  768. X *
  769. */
  770. X
  771. /* in sysintf.c: SIGQUIT is used, this is not defined in ZTC */
  772. #ifndef SIGQUIT
  773. #   define SIGQUIT SIGTERM
  774. #endif
  775. X
  776. /* in sysintf.c: tzset is not supported by ZTC */
  777. #define tzset()
  778. X
  779. /* ZTC uses it's own swapping spawn. */
  780. #define spawnvpe(a,b,c,d) spawnvp(a,b,c)
  781. X
  782. #ifndef CONST
  783. #   define CONST const
  784. #endif
  785. X
  786. #ifndef MSDOS
  787. #   define MSDOS 1
  788. #endif
  789. X
  790. extern unsigned _psp;
  791. X
  792. /* a small problem with pointer to voids on some unix machines needs this */
  793. #define PVOID void *
  794. SHAR_EOF
  795. chmod 0640 dmake/msdos/ztcdos/config.h ||
  796. echo 'restore of dmake/msdos/ztcdos/config.h failed'
  797. Wc_c="`wc -c < 'dmake/msdos/ztcdos/config.h'`"
  798. test 1916 -eq "$Wc_c" ||
  799.     echo 'dmake/msdos/ztcdos/config.h: original size 1916, current size' "$Wc_c"
  800. rm -f _shar_wnt_.tmp
  801. fi
  802. # ============= dmake/msdos/ztcdos/config.mk ==============
  803. if test -f 'dmake/msdos/ztcdos/config.mk' -a X"$1" != X"-c"; then
  804.     echo 'x - skipping dmake/msdos/ztcdos/config.mk (File already exists)'
  805.     rm -f _shar_wnt_.tmp
  806. else
  807. > _shar_wnt_.tmp
  808. sed 's/^X//' << 'SHAR_EOF' > 'dmake/msdos/ztcdos/config.mk' &&
  809. # This is the ZTC DOS configuration file for DMAKE
  810. #    It simply modifies the values of SRC, and checks to see if
  811. #    OSENVIRONMENT is defined.  If so it includes the appropriate
  812. #    config.mk file.
  813. #
  814. # It also sets the values of .SOURCE.c and .SOURCE.h to include the local
  815. # directory.
  816. #
  817. osrdir := $(OS)$(DIRSEPSTR)$(OSRELEASE)
  818. X
  819. TMPDIR :=
  820. .EXPORT : TMPDIR
  821. X
  822. # Definition of macros for library, and C startup code.
  823. # Swapping for DOS versions is enabled by default.  ZTC will automatically
  824. # perform swapping to XMS, EMS or disk by including _swapl.obj at link time.
  825. # To be most effective, _swapl.obj should be the first file linked so we
  826. # assign it to CSTARTUP if needed.
  827. .IF $(SWAP) == y
  828. X   CSTARTUP = _swapl.obj
  829. .END
  830. X
  831. # The following sources are required for ZTC
  832. # The tempnam supplied with ZTC doesn't handle a NULL dir.
  833. OSR_SRC = tempnam.c environ.c
  834. .SETDIR=$(osrdir) : $(OSR_SRC)
  835. X
  836. SRC += $(OSR_SRC)
  837. .SOURCE.h : $(osrdir)
  838. X
  839. # Local configuration modifications for CFLAGS 
  840. # If you have a 286, you can use -2 or appropriate to get better code, 
  841. # in that case uncomment the line below.  (You can also simply set
  842. # it in the CL environment variable.)
  843. #CFLAGS += -2
  844. ASFLAGS += -t -mx $(S_$(MODEL))
  845. X
  846. # Redefine this, it isn't needed!
  847. LDTAIL = ;
  848. X
  849. # Debugging libraries
  850. DB_LDFLAGS += -g
  851. DB_LDLIBS  +=
  852. X
  853. # NO Debug ZTC flags:
  854. #
  855. X
  856. CFLAGS      += -I$(osrdir) $(C_$(MODEL))
  857. CFLAGS      += -DM_I86=1 -DMSDOS
  858. CFLAGS      += -b             # use large compiler
  859. #CFLAGS      += -w            # no warnings
  860. CFLAGS      += -mi            # integer only
  861. CFLAGS      += -p             # no auto-prototyping
  862. NDB_CFLAGS  += -o
  863. DB_CFLAGS   += -g
  864. X
  865. # Redefine rule for making our objects, we don't need mv
  866. %$O : %.c ;% $(CC) -c $(CFLAGS) -o$@ $<
  867. X
  868. # See if we modify anything in the lower levels.
  869. .IF $(OSENVIRONMENT) != $(NULL)
  870. X   .INCLUDE .IGNORE : $(osrdir)$(DIRSEPSTR)$(OSENVIRONMENT)$(DIRSEPSTR)config.mk
  871. .END
  872. X
  873. C_s =
  874. C_m = -mM
  875. C_c = -mC
  876. C_l = -mL
  877. X
  878. S_s = -Dmsmall
  879. S_m = -Dmmedium
  880. S_c = -Dmcompact
  881. S_l = -Dmlarge
  882. SHAR_EOF
  883. chmod 0640 dmake/msdos/ztcdos/config.mk ||
  884. echo 'restore of dmake/msdos/ztcdos/config.mk failed'
  885. Wc_c="`wc -c < 'dmake/msdos/ztcdos/config.mk'`"
  886. test 1990 -eq "$Wc_c" ||
  887.     echo 'dmake/msdos/ztcdos/config.mk: original size 1990, current size' "$Wc_c"
  888. rm -f _shar_wnt_.tmp
  889. fi
  890. # ============= dmake/msdos/ztcdos/environ.c ==============
  891. if test -f 'dmake/msdos/ztcdos/environ.c' -a X"$1" != X"-c"; then
  892.     echo 'x - skipping dmake/msdos/ztcdos/environ.c (File already exists)'
  893.     rm -f _shar_wnt_.tmp
  894. else
  895. > _shar_wnt_.tmp
  896. sed 's/^X//' << 'SHAR_EOF' > 'dmake/msdos/ztcdos/environ.c' &&
  897. /*LINTLIBRARY*/
  898. #include <stdio.h>
  899. #include <string.h>
  900. #include <stdlib.h>
  901. #include "alloc.h"
  902. X
  903. /* ZTC++ doesn't have environ, so we have to create one. */
  904. X
  905. extern char *_envptr;
  906. char **environ = { NULL };
  907. X
  908. void
  909. make_env()
  910. {
  911. X    int        i;
  912. X    char    *cp;
  913. X
  914. X    for (i = 0, cp = _envptr; *cp; i++, cp += strlen(cp)+1)
  915. X        ;
  916. X
  917. X    TALLOC(environ, i+1, char*);
  918. X
  919. X    for (i = 0, cp = _envptr; *cp; i++, cp += strlen(cp)+1)
  920. X        environ[i] = cp;
  921. X
  922. X    return;
  923. }
  924. X
  925. void
  926. free_env()
  927. {
  928. X    FREE(environ);
  929. X
  930. X    return;
  931. }
  932. SHAR_EOF
  933. chmod 0640 dmake/msdos/ztcdos/environ.c ||
  934. echo 'restore of dmake/msdos/ztcdos/environ.c failed'
  935. Wc_c="`wc -c < 'dmake/msdos/ztcdos/environ.c'`"
  936. test 473 -eq "$Wc_c" ||
  937.     echo 'dmake/msdos/ztcdos/environ.c: original size 473, current size' "$Wc_c"
  938. rm -f _shar_wnt_.tmp
  939. fi
  940. # ============= dmake/msdos/ztcdos/lib.rsp ==============
  941. if test -f 'dmake/msdos/ztcdos/lib.rsp' -a X"$1" != X"-c"; then
  942.     echo 'x - skipping dmake/msdos/ztcdos/lib.rsp (File already exists)'
  943.     rm -f _shar_wnt_.tmp
  944. else
  945. > _shar_wnt_.tmp
  946. sed 's/^X//' << 'SHAR_EOF' > 'dmake/msdos/ztcdos/lib.rsp' &&
  947. X
  948. SHAR_EOF
  949. chmod 0640 dmake/msdos/ztcdos/lib.rsp ||
  950. echo 'restore of dmake/msdos/ztcdos/lib.rsp failed'
  951. Wc_c="`wc -c < 'dmake/msdos/ztcdos/lib.rsp'`"
  952. test 1 -eq "$Wc_c" ||
  953.     echo 'dmake/msdos/ztcdos/lib.rsp: original size 1, current size' "$Wc_c"
  954. rm -f _shar_wnt_.tmp
  955. fi
  956. # ============= dmake/msdos/ztcdos/libswp.rsp ==============
  957. if test -f 'dmake/msdos/ztcdos/libswp.rsp' -a X"$1" != X"-c"; then
  958.     echo 'x - skipping dmake/msdos/ztcdos/libswp.rsp (File already exists)'
  959.     rm -f _shar_wnt_.tmp
  960. else
  961. > _shar_wnt_.tmp
  962. sed 's/^X//' << 'SHAR_EOF' > 'dmake/msdos/ztcdos/libswp.rsp' &&
  963. X
  964. SHAR_EOF
  965. chmod 0640 dmake/msdos/ztcdos/libswp.rsp ||
  966. echo 'restore of dmake/msdos/ztcdos/libswp.rsp failed'
  967. Wc_c="`wc -c < 'dmake/msdos/ztcdos/libswp.rsp'`"
  968. test 1 -eq "$Wc_c" ||
  969.     echo 'dmake/msdos/ztcdos/libswp.rsp: original size 1, current size' "$Wc_c"
  970. rm -f _shar_wnt_.tmp
  971. fi
  972. # ============= dmake/msdos/ztcdos/mk.bat ==============
  973. if test -f 'dmake/msdos/ztcdos/mk.bat' -a X"$1" != X"-c"; then
  974.     echo 'x - skipping dmake/msdos/ztcdos/mk.bat (File already exists)'
  975.     rm -f _shar_wnt_.tmp
  976. else
  977. > _shar_wnt_.tmp
  978. sed 's/^X//' << 'SHAR_EOF' > 'dmake/msdos/ztcdos/mk.bat' &&
  979. md objects
  980. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\infer.obj infer.c
  981. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\make.obj make.c
  982. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\stat.obj stat.c
  983. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\expand.obj expand.c
  984. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\dmstring.obj dmstring.c
  985. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\hash.obj hash.c
  986. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\dag.obj dag.c
  987. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\dmake.obj dmake.c
  988. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\path.obj path.c
  989. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\imacs.obj imacs.c
  990. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\sysintf.obj sysintf.c
  991. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\parse.obj parse.c
  992. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\getinp.obj getinp.c
  993. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\quit.obj quit.c
  994. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\state.obj state.c
  995. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\basename.obj basename.c
  996. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\dmdump.obj dmdump.c
  997. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\macparse.obj macparse.c
  998. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\rulparse.obj rulparse.c
  999. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\percent.obj percent.c
  1000. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\function.obj function.c
  1001. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\ruletab.obj msdos\ruletab.c
  1002. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\dirbrk.obj msdos\dirbrk.c
  1003. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\runargv.obj msdos\runargv.c
  1004. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\arlib.obj msdos\arlib.c
  1005. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\_chdir.obj msdos\_chdir.c
  1006. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\switchar.obj msdos\switchar.c
  1007. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\rmprq.obj msdos\rmprq.c
  1008. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\tee.obj msdos\tee.c
  1009. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\tempnam.obj msdos\ztcdos\tempnam.c
  1010. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\environ.obj msdos\ztcdos\environ.c
  1011. copy msdos\ztcdos\startup.mk startup.mk
  1012. blink  @msdos\ztcdos\obj.rsp,dmake.exe,NUL.MAP;
  1013. SHAR_EOF
  1014. chmod 0640 dmake/msdos/ztcdos/mk.bat ||
  1015. echo 'restore of dmake/msdos/ztcdos/mk.bat failed'
  1016. Wc_c="`wc -c < 'dmake/msdos/ztcdos/mk.bat'`"
  1017. test 3232 -eq "$Wc_c" ||
  1018.     echo 'dmake/msdos/ztcdos/mk.bat: original size 3232, current size' "$Wc_c"
  1019. rm -f _shar_wnt_.tmp
  1020. fi
  1021. # ============= dmake/msdos/ztcdos/mkswp.bat ==============
  1022. if test -f 'dmake/msdos/ztcdos/mkswp.bat' -a X"$1" != X"-c"; then
  1023.     echo 'x - skipping dmake/msdos/ztcdos/mkswp.bat (File already exists)'
  1024.     rm -f _shar_wnt_.tmp
  1025. else
  1026. > _shar_wnt_.tmp
  1027. sed 's/^X//' << 'SHAR_EOF' > 'dmake/msdos/ztcdos/mkswp.bat' &&
  1028. md objects
  1029. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\infer.obj infer.c
  1030. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\make.obj make.c
  1031. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\stat.obj stat.c
  1032. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\expand.obj expand.c
  1033. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\dmstring.obj dmstring.c
  1034. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\hash.obj hash.c
  1035. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\dag.obj dag.c
  1036. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\dmake.obj dmake.c
  1037. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\path.obj path.c
  1038. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\imacs.obj imacs.c
  1039. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\sysintf.obj sysintf.c
  1040. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\parse.obj parse.c
  1041. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\getinp.obj getinp.c
  1042. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\quit.obj quit.c
  1043. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\state.obj state.c
  1044. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\basename.obj basename.c
  1045. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\dmdump.obj dmdump.c
  1046. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\macparse.obj macparse.c
  1047. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\rulparse.obj rulparse.c
  1048. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\percent.obj percent.c
  1049. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\function.obj function.c
  1050. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\ruletab.obj msdos\ruletab.c
  1051. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\dirbrk.obj msdos\dirbrk.c
  1052. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\runargv.obj msdos\runargv.c
  1053. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\arlib.obj msdos\arlib.c
  1054. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\_chdir.obj msdos\_chdir.c
  1055. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\switchar.obj msdos\switchar.c
  1056. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\rmprq.obj msdos\rmprq.c
  1057. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\tee.obj msdos\tee.c
  1058. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\tempnam.obj msdos\ztcdos\tempnam.c
  1059. ztc -c -I. -Imsdos -Imsdos\ztcdos -mL -DM_I86=1 -DMSDOS -b -mi -p -o -oobjects\environ.obj msdos\ztcdos\environ.c
  1060. copy msdos\ztcdos\startup.mk startup.mk
  1061. blink  @msdos\ztcdos\objswp.rsp,dmake.exe,NUL.MAP;
  1062. SHAR_EOF
  1063. chmod 0640 dmake/msdos/ztcdos/mkswp.bat ||
  1064. echo 'restore of dmake/msdos/ztcdos/mkswp.bat failed'
  1065. Wc_c="`wc -c < 'dmake/msdos/ztcdos/mkswp.bat'`"
  1066. test 3235 -eq "$Wc_c" ||
  1067.     echo 'dmake/msdos/ztcdos/mkswp.bat: original size 3235, current size' "$Wc_c"
  1068. rm -f _shar_wnt_.tmp
  1069. fi
  1070. # ============= dmake/msdos/ztcdos/obj.rsp ==============
  1071. if test -f 'dmake/msdos/ztcdos/obj.rsp' -a X"$1" != X"-c"; then
  1072.     echo 'x - skipping dmake/msdos/ztcdos/obj.rsp (File already exists)'
  1073.     rm -f _shar_wnt_.tmp
  1074. else
  1075. > _shar_wnt_.tmp
  1076. sed 's/^X//' << 'SHAR_EOF' > 'dmake/msdos/ztcdos/obj.rsp' &&
  1077. objects\infer.obj+
  1078. objects\make.obj+
  1079. objects\stat.obj+
  1080. objects\expand.obj+
  1081. objects\dmstring.obj+
  1082. objects\hash.obj+
  1083. objects\dag.obj+
  1084. objects\dmake.obj+
  1085. objects\path.obj+
  1086. objects\imacs.obj+
  1087. objects\sysintf.obj+
  1088. objects\parse.obj+
  1089. objects\getinp.obj+
  1090. objects\quit.obj+
  1091. objects\state.obj+
  1092. objects\basename.obj+
  1093. objects\dmdump.obj+
  1094. objects\macparse.obj+
  1095. objects\rulparse.obj+
  1096. objects\percent.obj+
  1097. objects\function.obj+
  1098. objects\ruletab.obj+
  1099. objects\dirbrk.obj+
  1100. objects\runargv.obj+
  1101. objects\arlib.obj+
  1102. objects\_chdir.obj+
  1103. objects\switchar.obj+
  1104. objects\rmprq.obj+
  1105. objects\tee.obj+
  1106. objects\tempnam.obj+
  1107. objects\environ.obj
  1108. SHAR_EOF
  1109. chmod 0640 dmake/msdos/ztcdos/obj.rsp ||
  1110. echo 'restore of dmake/msdos/ztcdos/obj.rsp failed'
  1111. Wc_c="`wc -c < 'dmake/msdos/ztcdos/obj.rsp'`"
  1112. test 614 -eq "$Wc_c" ||
  1113.     echo 'dmake/msdos/ztcdos/obj.rsp: original size 614, current size' "$Wc_c"
  1114. rm -f _shar_wnt_.tmp
  1115. fi
  1116. # ============= dmake/msdos/ztcdos/objswp.rsp ==============
  1117. if test -f 'dmake/msdos/ztcdos/objswp.rsp' -a X"$1" != X"-c"; then
  1118.     echo 'x - skipping dmake/msdos/ztcdos/objswp.rsp (File already exists)'
  1119.     rm -f _shar_wnt_.tmp
  1120. else
  1121. > _shar_wnt_.tmp
  1122. sed 's/^X//' << 'SHAR_EOF' > 'dmake/msdos/ztcdos/objswp.rsp' &&
  1123. _swapl.obj+
  1124. objects\infer.obj+
  1125. objects\make.obj+
  1126. objects\stat.obj+
  1127. objects\expand.obj+
  1128. objects\dmstring.obj+
  1129. objects\hash.obj+
  1130. objects\dag.obj+
  1131. objects\dmake.obj+
  1132. objects\path.obj+
  1133. objects\imacs.obj+
  1134. objects\sysintf.obj+
  1135. objects\parse.obj+
  1136. objects\getinp.obj+
  1137. objects\quit.obj+
  1138. objects\state.obj+
  1139. objects\basename.obj+
  1140. objects\dmdump.obj+
  1141. objects\macparse.obj+
  1142. objects\rulparse.obj+
  1143. objects\percent.obj+
  1144. objects\function.obj+
  1145. objects\ruletab.obj+
  1146. objects\dirbrk.obj+
  1147. objects\runargv.obj+
  1148. objects\arlib.obj+
  1149. objects\_chdir.obj+
  1150. objects\switchar.obj+
  1151. objects\rmprq.obj+
  1152. objects\tee.obj+
  1153. objects\tempnam.obj+
  1154. objects\environ.obj
  1155. SHAR_EOF
  1156. chmod 0640 dmake/msdos/ztcdos/objswp.rsp ||
  1157. echo 'restore of dmake/msdos/ztcdos/objswp.rsp failed'
  1158. Wc_c="`wc -c < 'dmake/msdos/ztcdos/objswp.rsp'`"
  1159. test 626 -eq "$Wc_c" ||
  1160.     echo 'dmake/msdos/ztcdos/objswp.rsp: original size 626, current size' "$Wc_c"
  1161. rm -f _shar_wnt_.tmp
  1162. fi
  1163. # ============= dmake/msdos/ztcdos/public.h ==============
  1164. if test -f 'dmake/msdos/ztcdos/public.h' -a X"$1" != X"-c"; then
  1165.     echo 'x - skipping dmake/msdos/ztcdos/public.h (File already exists)'
  1166.     rm -f _shar_wnt_.tmp
  1167. else
  1168. > _shar_wnt_.tmp
  1169. sed 's/^X//' << 'SHAR_EOF' > 'dmake/msdos/ztcdos/public.h' &&
  1170. /* RCS      -- $Header$
  1171. -- WARNING  -- This file is AUTOMATICALLY GENERATED DO NOT EDIT IT
  1172. --
  1173. -- SYNOPSIS -- Local functions exported to be visible by others.
  1174. --
  1175. -- DESCRIPTION
  1176. --      This file is generated by 'genpub'.  Function declarations
  1177. --      that appear in this file are extracted by 'genpub' from
  1178. --      source files.  Any function in the source file whose definition
  1179. --      appears like:
  1180. --
  1181. --          PUBLIC return_type
  1182. --          function( arg_list );
  1183. --          type_expr1 arg1;
  1184. --          ...
  1185. --
  1186. --      has its definition extracted and a line of the form:
  1187. --
  1188. --          return_type function ANSI((type_expr1,type_expr2,...));
  1189. --
  1190. --      entered into the output file.
  1191. --
  1192. -- AUTHOR
  1193. --      Dennis Vadura, dvadura@watdragon.uwaterloo.ca
  1194. --      CS DEPT, University of Waterloo, Waterloo, Ont., Canada
  1195. --
  1196. -- COPYRIGHT
  1197. --      Copyright (c) 1990 by Dennis Vadura.  All rights reserved.
  1198. -- 
  1199. --      This program is free software; you can redistribute it and/or
  1200. --      modify it under the terms of the GNU General Public License
  1201. --      (version 1), as published by the Free Software Foundation, and
  1202. --      found in the file 'LICENSE' included with this distribution.
  1203. -- 
  1204. --      This program is distributed in the hope that it will be useful,
  1205. --      but WITHOUT ANY WARRANTY; without even the implied warrant of
  1206. SHAR_EOF
  1207. true || echo 'restore of dmake/msdos/ztcdos/public.h failed'
  1208. fi
  1209. echo 'End of part 26, continue with part 27'
  1210. echo 27 > _shar_seq_.tmp
  1211. exit 0
  1212. exit 0 # Just in case...
  1213.